import { RouteObject } from "react-router-dom";

import BasicLayout from "@/layout";

import Search from "@/views/list/search";
import Applications from "@/views/list/search/applications";
import Articles from "@/views/list/search/articles";
import Projects from "@/views/list/search/projects";

const route: RouteObject = {
  key: "/list",
  label: "列表页",
  path: "/list",
  element: <BasicLayout />,
  children: [
    {
      key: "/list/search",
      label: "搜索列表",
      path: "/list/search",
      element: <Search />,
      children: [
        {
          key: "/list/search/applications",
          label: "应用",
          path: "/list/search/applications",
          element: <Applications />,
        },
        {
          key: "/list/search/articles",
          label: "文章",
          path: "/list/search/articles",
          element: <Articles />,
        },
        {
          key: "/list/search/projects",
          label: "项目",
          path: "/list/search/projects",
          element: <Projects />,
        },
      ],
    },
  ],
};

export default route;
